package co.edu.usbcali.modelo;
// Generated 26/09/2011 12:36:11 AM by Zathura powered by Hibernate Tools 3.2.4.GA


import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * ActaInicio generated by Zathura powered by Hibernate-tools(hbm2java)
 */
@Entity
@Table(name="ACTA_INICIO"
    ,schema="GPE"
)
public class ActaInicio  implements java.io.Serializable {


     private Long codigoIni;
     private Practicante practicante;
     private Date fechaIni;
     private String diasIni;
     private Long horasIni;
     private String funcionesIni;

    public ActaInicio() {
    }

    public ActaInicio(Long codigoIni, Practicante practicante, Date fechaIni, String diasIni, Long horasIni, String funcionesIni) {
       this.codigoIni = codigoIni;
       this.practicante = practicante;
       this.fechaIni = fechaIni;
       this.diasIni = diasIni;
       this.horasIni = horasIni;
       this.funcionesIni = funcionesIni;
    }
   

    @SequenceGenerator(name="G_Ini",initialValue=1,allocationSize=1,sequenceName="incremento_cod_ini")
    @Id @GeneratedValue(generator="G_Ini",strategy=GenerationType.SEQUENCE)
    
    @Column(name="CODIGO_INI", unique=true, nullable=false, precision=10, scale=0)
    public Long getCodigoIni() {
        return this.codigoIni;
    }
    
    public void setCodigoIni(Long codigoIni) {
        this.codigoIni = codigoIni;
    }

@ManyToOne(fetch=FetchType.LAZY)
    @JoinColumn(name="COD_PRA", nullable=false)
    public Practicante getPracticante() {
        return this.practicante;
    }
    
    public void setPracticante(Practicante practicante) {
        this.practicante = practicante;
    }

    @Temporal(TemporalType.TIMESTAMP)
    @Column(name="FECHA_INI", nullable=false, length=11)
    public Date getFechaIni() {
        return this.fechaIni;
    }
    
    public void setFechaIni(Date fechaIni) {
        this.fechaIni = fechaIni;
    }

    
    @Column(name="DIAS_INI", nullable=false, length=30)
    public String getDiasIni() {
        return this.diasIni;
    }
    
    public void setDiasIni(String diasIni) {
        this.diasIni = diasIni;
    }

    
    @Column(name="HORAS_INI", nullable=false, precision=3, scale=0)
    public Long getHorasIni() {
        return this.horasIni;
    }
    
    public void setHorasIni(Long horasIni) {
        this.horasIni = horasIni;
    }

    
    @Column(name="FUNCIONES_INI", nullable=false)
    public String getFuncionesIni() {
        return this.funcionesIni;
    }
    
    public void setFuncionesIni(String funcionesIni) {
        this.funcionesIni = funcionesIni;
    }




}


